﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.AppSession;
using Magicodes.WeChat.User.Dto;

namespace Magicodes.WeChat.Web.Core
{
    public static class AppSessionExtension
    {
        /// <summary>
        /// 获取粉丝信息
        /// </summary>
        /// <param name="appSession"></param>
        /// <returns></returns>
        public static WeChatUserListDto GetWeChatUser(this IAppSession appSession)
        {
            return appSession.GetUserInfo<WeChatUserListDto>();
        }
    }
}
